ExamPlay Light Logo
Prihlásiť sa

Computer Science for IGCSE & O level - Programming (Section 6 - No. 14)

What is the primary difference between a pre-condition loop and a post-condition loop?
Pre-condition loops always execute at least once.
Post-condition loops check the condition before the loop body is executed.
Pre-condition loops check the condition before the loop body is executed.
Post-condition loops cannot be used with a counter.

Vysvetlenie

The pre-condition loop checks at the start, while the post-condition at the end of the loop body.

Pripomienky (0)

Ak chcete komentovať, prihláste sa
Reklama
BrainBehindX Inc Logo
©2026; Beží na BrainBehindX Inc